#!/bin/bash

echo "Setting network..."
./setup_network.pl 

if [ $? -ne 0 ] 
then
   exit $?
fi

echo "Starting aodv, the log file is at ../log/aodv.log"
mkdir ../log
cd ../typecast-maodv

./aodvd -l -r 30 2>&1 | tee ../log/aodv.log



